package com.investmenttechnologyservices.model;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Key;


public class Equity extends Instrument {
	
	public Equity(Entity entity) {
		super(entity);
	}
	
	public Equity(String key, Key firmKey, String name, Key issuerKey, Double sharesOutstanding) {
	    super(key, firmKey, name, issuerKey, InstrumentType.EQUITY);
		setSharesOutstanding(sharesOutstanding);
	}

	public void setSharesOutstanding(Double sharesOutstanding){
		setProperty("sharesOutstanding", sharesOutstanding);
	}
	public Double getSharesOutstanding() {return (Double)getProperty("sharesOutstanding");}
	
}
